package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 2, 2010
 * Time: 11:12:34 AM
 *
 */
class ConditionPredicate implements Predicate {

  Condition condition

  def ConditionPredicate(condition) {
    this.condition = condition;
  }

  def boolean apply(Object object) {
    return condition.closure.call(object)
  }


}
